<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // let fun1=(a,b,c,...arr)=>{ 
        //     console.log(a,b,c);//1 2 3
        //     console.log(arr);//[4, 5, 6, 7]
        // }
        // fun1(1,2,3,4,5,6,7);//1 2 3 [4, 5, 6, 7]
        let arr1=[1, 2, 3];
        let arr2=[4, 5, 6, 7];
        let arr3=[...arr1, ...arr2]; //展开运算符
        console.log(arr3);//[1, 2, 3, 4, 5, 6, 7]
        let person1={name:'张三',age:18};
        let person2={name1:'李四',age1:20};
        let person3={...person1, ...person2}; //展开运算符
        console.log(person3);//{name: '张三', age: 18, name1: '李四'}
    </script>
</head>
<body>
    
</body>
</html>